using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Workflow;

namespace Moss.Workflow.Activities
{
    /// <summary>
    /// This is a class to pass back the Before and After properties to
    /// the calling workflow so it can take approriate action
    /// </summary>

    [Serializable()]
    class TaskEventArgs : EventArgs
    {
        #region Private Variables
        private SPWorkflowTaskProperties beforeProperties = null;
        private SPWorkflowTaskProperties afterProperties = null;
        private bool result;
        #endregion

        #region Public Properties
        public SPWorkflowTaskProperties BeforeProperties 
        {
            get
            {
                return this.beforeProperties;
            }
            set
            {
                this.beforeProperties = value;
            }
        }
        public SPWorkflowTaskProperties AfterProperties
        {
            get
            {
                return this.afterProperties;
            }
            set
            {
                this.afterProperties = value;
            }
        }
        public bool Result
        {
            get
            {
                return this.result;
            }
            set
            {
                this.result = value;
            }
        }
        #endregion

        #region CTOR
        public TaskEventArgs(SPWorkflowTaskProperties before, SPWorkflowTaskProperties after)
        {
            this.beforeProperties = before;
            this.afterProperties = after;
        }
        #endregion
    }
}
